home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / winter_challenge.swf / scripts / DefineSprite_91 / frame_34 / DoAction.as
Text File  |  2011-08-19  |  874b  |  35 lines

  1. if(leafeOneFrameout_flag != 1)
  2. {
  3.    set("_root.clock.clockInlay.sec2",_root.clock.clockInlay.sec2 - 1);
  4.    if(_root.clock.clockInlay.sec2 < 0)
  5.    {
  6.       set("_root.clock.clockInlay.sec1",_root.clock.clockInlay.sec1 - 1);
  7.       _root.clock.clockInlay.sec2 = "9";
  8.    }
  9.    if(_root.clock.clockInlay.sec1 < 0 && _root.clock.clockInlay.min > 0)
  10.    {
  11.       set(_root.clock.clockInlay.min,_root.clock.clockInlay.min - 1);
  12.       _root.clock.clockInlay.sec1 = "5";
  13.       _root.clock.clockInlay.sec2 = "9";
  14.    }
  15.    gotoAndPlay(33);
  16.    leafeOneFrameout_flag = 1;
  17. }
  18. else
  19. {
  20.    secCount++;
  21.    if(secCount >= 26)
  22.    {
  23.       leafeOneFrameout_flag = 0;
  24.       secCount = 0;
  25.    }
  26.    if(_root.clock.clockInlay.min == 0 && _root.clock.clockInlay.sec1 == 0 && _root.clock.clockInlay.sec2 == 0)
  27.    {
  28.       play();
  29.    }
  30.    else
  31.    {
  32.       gotoAndPlay(33);
  33.    }
  34. }
  35.